﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BW.MesProject.WareHouse.Domain
{
    /// <summary>
    /// 流程节点表
    /// </summary>
    [SugarTable("ProcessNodesItem", TableDescription = "流程节点表")]
    public class ProcessNodesItem
    {
        /// <summary>
        /// 流程节点主键
        /// </summary>
        [SugarColumn(IsIdentity = true, IsPrimaryKey = true, ColumnDescription = "流程节点主键")]
        public string ProcessNodesItemId { get; set; }

        /// <summary>
        /// 流程主表ID
        /// </summary>
        [SugarColumn(ColumnDescription = "流程主表ID")]
        public string ProcessNodesId { get; set; }

        /// <summary>
        /// 节点编码
        /// </summary>
        [SugarColumn(ColumnDescription = "节点编码")]
        public string NodeSn { get; set; }

        /// <summary>
        /// 节点名称
        /// </summary>
        [SugarColumn(ColumnDescription = "节点名称")]
        public string NodeName { get; set; }

        /// <summary>
        /// 执行人Id
        /// </summary>
        [SugarColumn(ColumnDescription = "执行人Id")]
        public string OperatorId { get; set; }

        /// <summary>
        /// 执行人名称
        /// </summary>
        [SugarColumn(ColumnDescription = "执行人名称")] 
        public string Operator { get; set; }

        /// <summary>
        /// 下一节点编号
        /// </summary>
        [SugarColumn(ColumnDescription = "下一节点编号")] 
        public string NextNodeSn { get; set; }

        /// <summary>
        /// 上一节点编号（退回节点）
        /// </summary>
        [SugarColumn(ColumnDescription = "上一节点编号")] 
        public string LastNodeSn { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(ColumnDescription = "创建时间")] 
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 是否删除
        /// </summary>
        [SugarColumn(ColumnDescription = "是否删除")]
        public bool IsDelete { get; set; } = false;

        /// <summary>
        /// 审批节点顺序
        /// </summary>
        [SugarColumn(ColumnDescription = "审批节点顺序")]
        public int PNINum { get; set; }
    }
}
